﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TangoFamilyAndGuide.Master" AutoEventWireup="true" CodeBehind="AirTicketCrear.aspx.cs" Inherits="TangoFamilyAndGuide.Site.AirTicketCrear" Theme="Tango" Culture="en-GB" UICulture="en-GB" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" 
        style="background-position: left; padding-left:10px; width: 800px; background-image: url('Imagenes/Pasajes.jpg'); background-repeat: no-repeat;">
        <tr>
            <td align="center" colspan="4" style="padding-top: 20px">
                <asp:Label ID="Label1" runat="server" SkinID="TituloPagina" Text="Air Ticket Group Buying" ForeColor="#F6B200"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="padding-top: 10px; padding-right: 5px">
            </td>
            <td align="right" style="width: 100px; padding-top: 10px; padding-right: 5px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="NombreTextBox"
			        ErrorMessage="Country" SetFocusOnError="True">
			        <asp:Label ID="Label22" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
                <asp:Label ID="NombreLabel" runat="server" Text="Name"></asp:Label>
            </td>
            <td align="left" colspan="2" style="padding-top: 10px; width: 440px">
                <asp:TextBox ID="NombreTextBox" runat="server" TabIndex="1" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="EmailTextBox"
			        ErrorMessage="Country" SetFocusOnError="True">
			        <asp:Label ID="Label23" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
                <asp:Label ID="EmailLabel" runat="server" Text="Email"></asp:Label>
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:TextBox ID="EmailTextBox" runat="server" TabIndex="2" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TelefonoTextBox"
			        ErrorMessage="Country" SetFocusOnError="True">
			        <asp:Label ID="Label24" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
                <asp:Label ID="TelefonoLabel" runat="server" Text="Phone"></asp:Label>
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:TextBox ID="TelefonoTextBox" runat="server" TabIndex="2" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
                <asp:Label ID="Label3" runat="server" Text="Ticket"></asp:Label>
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:RadioButton ID="TypeTicketRoundTripRadioButton" runat="server" Text="Round trip" GroupName="TypeTicket" Checked="true" />
                <asp:RadioButton ID="TypeTicketOneWayRadioButton" runat="server" Text="One way" GroupName="TypeTicket"/>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:Label ID="Label20" runat="server" Text="Source:"></asp:Label>
            </td>
        </tr>
        <!-- Pais Origen -->
        <tr>
            <td>
            </td>
	        <td align="right" style="padding-right: 5px; padding-top:3px">
		        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="PaisOrigenTextBox"
			        ErrorMessage="Country" SetFocusOnError="True" ValidationExpression="[A-Za-z\- ,.0-9]*">
			        <asp:Label ID="Label4" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RegularExpressionValidator>
		        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="PaisOrigenTextBox"
			        ErrorMessage="Country" SetFocusOnError="True">
			        <asp:Label ID="Label5" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
		        <asp:Label ID="Label6" runat="server" Text="Country"></asp:Label>
	        </td>
	        <td align="left" colspan="2" style="padding-top:3px">
		        <asp:TextBox ID="PaisOrigenTextBox" runat="server" MaxLength="50" TabIndex="3" Width="400px"></asp:TextBox>
	        </td>
        </tr>
        <!-- Ciudad o Localidad Origen -->
        <tr>
	        <td>
            </td>
            <td align="right" style="padding-right: 5px; padding-top:3px">
		        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="LocalidadOrigenTextBox"
			        ErrorMessage="City" SetFocusOnError="True" ValidationExpression="[A-Za-z\- ,.0-9]*">
			        <asp:Label ID="Label35" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RegularExpressionValidator>
		        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="LocalidadOrigenTextBox"
			        ErrorMessage="City" SetFocusOnError="True">
			        <asp:Label ID="Label36" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
		        <asp:Label ID="Label7" runat="server" Text="City"></asp:Label>
	        </td>
	        <td align="left" colspan="2" style="padding-top:3px">
		        <asp:TextBox ID="LocalidadOrigenTextBox" runat="server" MaxLength="50" TabIndex="4" Width="400px"></asp:TextBox>
	        </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:Label ID="Label21" runat="server" Text="Destination:"></asp:Label>
            </td>
        </tr>
        <!-- Pais Destino-->
        <tr>
            <td>
            </td>
	        <td align="right" style="padding-right: 5px; padding-top:3px">
		        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="PaisDestinoTextBox"
			        ErrorMessage="Country" SetFocusOnError="True" ValidationExpression="[A-Za-z\- ,.0-9]*">
			        <asp:Label ID="Label8" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RegularExpressionValidator>
		        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="PaisDestinoTextBox"
			        ErrorMessage="Country" SetFocusOnError="True">
			        <asp:Label ID="Label9" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
		        <asp:Label ID="Label10" runat="server" Text="Country"></asp:Label>
	        </td>
	        <td align="left" colspan="2" style="padding-top:3px">
		        <asp:TextBox ID="PaisDestinoTextBox" runat="server" MaxLength="50" TabIndex="5" Width="400px"></asp:TextBox>
	        </td>
        </tr>
        <!-- Ciudad o Localidad Destino -->
        <tr>
	        <td>
            </td>
            <td align="right" style="padding-right: 5px; padding-top:3px">
		        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="LocalidadDestinoTextBox"
			        ErrorMessage="City" SetFocusOnError="True" ValidationExpression="[A-Za-z\- ,.0-9]*">
			        <asp:Label ID="Label11" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RegularExpressionValidator>
		        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="LocalidadDestinoTextBox"
			        ErrorMessage="City" SetFocusOnError="True">
			        <asp:Label ID="Label12" runat="server" SkinID="IndicadorValidacion"></asp:Label>
		        </asp:RequiredFieldValidator>
		        <asp:Label ID="Label13" runat="server" Text="City"></asp:Label>
	        </td>
	        <td align="left" colspan="2" style="padding-top:3px">
		        <asp:TextBox ID="LocalidadDestinoTextBox" runat="server" MaxLength="50" TabIndex="6" Width="400px"></asp:TextBox>
	        </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:Label ID="Label26" runat="server" Text="Dates:"></asp:Label>
                <asp:CompareValidator ID="cvFechaHastaTextBox" runat="server" ValidationGroup="Insert" ErrorMessage="Date from should be greater than or equals to Date until." ControlToCompare="FechaDesdeTextBox" ControlToValidate="FechaHastaTextBox" Operator="GreaterThanEqual">
                </asp:CompareValidator>
            </td>
        </tr>
        <tr>
	        <td>
            </td>
            <td align="right" style="padding-right: 5px; padding-top:3px">
                <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
            </td>
            <td colspan="2" align="left" style="padding-right: 5px; padding-top:3px">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right" style="padding-right: 10px; padding-left: 10px; padding-top: 3px">
                            <asp:Label ID="Label25" runat="server" Text="from"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="FechaDesdeTextBox" runat="server" style="" MaxLength="10" Width="80px" TabIndex="7"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender1" TargetControlID="FechaDesdeTextBox" runat="server" Format="dd/MM/yyyy" />
                        </td>
                        <td align="right" style="padding-right: 10px; padding-left: 10px; padding-top: 3px">
                            <asp:Label ID="FechaHastaLabel" runat="server" Text="to"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="FechaHastaTextBox" runat="server" style="" MaxLength="10" Width="80px" TabIndex="8"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender2" TargetControlID="FechaHastaTextBox" runat="server" Format="dd/MM/yyyy" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
	        <td>
            </td>
            <td align="right" style="padding-right: 5px; padding-top:3px">
                <asp:Label ID="Label18" runat="server" Text="Class"></asp:Label>
            </td>
            <td colspan="2" align="left" style="padding-right: 5px; padding-top:3px">
                <asp:DropDownList ID="ClaseDropDownList" runat="server" TabIndex="9" Width="400px" DataValueField="Id" DataTextField="Descr">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
	        <td>
            </td>
            <td align="right" style="padding-right: 5px; padding-top:3px">
                <asp:Label ID="Label19" runat="server" Text="Passengers"></asp:Label>
            </td>
            <td colspan="2" align="left" style="padding-right: 5px; padding-top:3px">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="padding-left: 5px; text-align:left;">
                            <asp:RegularExpressionValidator ID="AdultsRegularExpressionValidator"
                                runat="server" ControlToValidate="AdultsTextBox"
                                ErrorMessage="Error in adults amount" SetFocusOnError="True" ValidationExpression="[0-9]">
                                <asp:Label ID="Label15" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                            </asp:RegularExpressionValidator>
                            <asp:Label ID="Label16" runat="server" Text="Number of Adults (12+) "></asp:Label>
                            <asp:TextBox ID="AdultsTextBox" runat="server" style="" MaxLength="3" Width="40px" TabIndex="10"></asp:TextBox>
                        </td>
                        <td style="padding-left: 15px;">
                            <asp:RegularExpressionValidator ID="ChildsExpressionValidator"
                                runat="server" ControlToValidate="ChildsTextBox"
                                ErrorMessage="Error in childs amount" SetFocusOnError="True" ValidationExpression="[0-9]">
                                <asp:Label ID="Label14" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                            </asp:RegularExpressionValidator>
                            <asp:Label ID="Label17" runat="server" Text=" Childs (0-11) "></asp:Label>
                            <asp:TextBox ID="ChildsTextBox" runat="server" style="" MaxLength="2" Width="40px" TabIndex="11"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="padding-top: 3px" valign="bottom">
                <asp:Image ID="CaptchaImage" runat="server" AlternateText="" Height="60px" Width="150px" />
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
                <asp:Label ID="DescripcionLabel" runat="server" Text="Comments"></asp:Label>
            </td>
            <td align="left" colspan="2" style="padding-top: 3px">
                <asp:TextBox ID="DescripcionTextBox" runat="server" Height="100px" TabIndex="12" style="resize: none;" TextMode="MultiLine" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" style="padding-top: 3px" valign="top">
                <asp:Button ID="NuevaClaveCaptchaButton" runat="server" OnClick="NuevaClaveCaptchaButton_Click" Text="New Code" OnClientClick="BorrarMensaje()" UseSubmitBehavior="false" />
            </td>
            <td align="right" style="padding-top: 3px; padding-right: 5px">
                <asp:Label ID="ClaveLabel" runat="server" Text="Code"></asp:Label>
            </td>
            <td align="left" style="width: 80px; padding-top: 3px">
                <asp:TextBox ID="CaptchaTextBox" runat="server" TabIndex="13" Width="80px"></asp:TextBox>
            </td>
            <td align="left" style="padding-top: 3px; padding-left: 3px;">
                <asp:Label ID="CaseSensitiveLabel" runat="server" ForeColor="gray" Text="(not case sensitive / no se distinguen mayúsculas de minúsculas)"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td align="left" style="padding-top: 10px">
                <asp:Button ID="EnviarButton" runat="server" OnClick="EnviarButton_Click" TabIndex="14" Text="Send" Width="80px" OnClientClick="BorrarMensaje()" UseSubmitBehavior="false" />
            </td>
            <td align="right" style="padding-top: 10px; padding-right: 2px" class="style1">
                <asp:Button ID="BorrarDatosButton" runat="server" OnClick="BorrarDatosButton_Click" Text="Clear" TabIndex="15" OnClientClick="BorrarMensaje()" UseSubmitBehavior="false" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td align="right" style="padding-top: 20px" class="style2">
                <asp:Button ID="SalirButton" runat="server" CausesValidation="false" TabIndex="16" Text="Exit" PostBackUrl="~/Home.aspx" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="padding-bottom: 30px; padding-top: 20px">
                <asp:Label ID="MensajeLabel" runat="server" SkinID="MensajePagina" Text=""></asp:Label>
            </td>
        </tr>
    </table>
        <table border="0" cellpadding="0" cellspacing="0" 
        style="padding-left:10px; width: 800px; ">
         <tr>
        <td>
        For more information send a mail to <b style="color: #F6B200">ticket@tangofamilyandguide.com.ar</b>
        </td>
        </tr>
        </table>
    <script type="text/javascript">
        function BorrarMensaje() {
            {
                document.getElementById('<%=MensajeLabel.ClientID%>').innerHTML = '';
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 281px;
        }
        .style2
        {
            height: 24px;
            width: 281px;
        }
    </style>
</asp:Content>

